package com.elasticsearch.repository;

import com.elasticsearch.pojo.UserPojo;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author xiaochi
 * @date 2022/3/12 16:50
 * @desc UserRepository 类似 dao
 */
public interface UserRepository extends ElasticsearchRepository<UserPojo,Long> {

    // 自定义查询
    List<UserPojo> findByAgeBetween(Integer age1,Integer age2);
}
